//
//  KXDetailHeader.swift
//  KXBook
//
//  Created by  on 2022/9/10.
//

import UIKit

class KXDetailHeader: UICollectionReusableView {
    @IBOutlet var inPay: UILabel!
    @IBOutlet var money: UILabel!
    @IBOutlet var mark: UILabel!
    @IBOutlet var img: UIImageView!
    @IBOutlet var type: UILabel!
  
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    var model = KXRecord(){
        didSet{
            self.inPay.text = model.type.isPay == 1 ? LS("支出") : LS("收入")
            self.money.text = model.money
            self.mark.text = model.descrip
            self.img.image = UIImage(named:model.type.icon)
            self.type.text = LS(model.type.name)
        }
    }
}
